<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Ajax</title>
</head>
<body>

    <canvas id="draw-in-me" width="120" height="40"></canvas>

    <form onsubmit="return check(email, date);">
        <input type="email" id="email"/>
        <input type="date" id="date"/>
        <button type="submit" onclick="submit()">提交</button>
    </form>
    <script type="text/javascript" src="js/addLoadEvent.js"></script>
    <script src="js/canvas.js"></script>
<script>
    function check(email, date) {
        alert(document.getElementById("email"));
    }
</script>
</body>
</html>
